#ifndef _MHACAMERAEX_H_
#define _MHACAMERAEX_H_

#include <hge.h>
#include <mhavector.h>

//class CApp;

class mhaCameraEx {
public:
	mhaCameraEx();
	~mhaCameraEx();

	void Clear(void);
	void SetD(float dx, float dy);
	void Set(float x, float y, float scale);

	void Reset(void);
	void Apply(void);

	void WorldToScreen(float wx, float wy, float *sx, float *sy);
	void ScreenToWorld(float sx, float sy, float *wx, float *wy);

	// public data
	mhaVector pos;
	float scale;

protected:
	static HGE *hge;
	//static CApp *App;
	//float HalfWidth, HalfHeight;
	float dX, dY;
};

#endif